<template>
	<view class="uam-head">
		<view class="uam-head-icon" v-show="true">
			<view class="front">
				<span class="iconfont" @tap="handleToBack()">&#xe62c;</span>
				<span class="yangshi">|</span>
				<span class="iconfont" @tap="handleToHome()">&#xe636;</span>
			</view>
			<view class="middle">
				<span>{{title}}</span>
			</view>
			<view class="front">
				<span class="iconfont">&#xe648;</span>
				<span class="yangshi">|</span>
				<span class="iconfont">&#xe649;</span>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		props:{
			title: String
		},
		onLoad() {

		},
		methods: {
           handleToBack(){
			   uni.navigateBack();
		   },
		   handleToHome(){
			   uni.navigateTo({
			   	url:'/pages/index/index'
			   })
		   }
		}
	}
</script>

<style>
	.uam-head-icon {
		display: flex;
		justify-content: space-between;
		box-sizing: border-box;
		padding: 0rpx 30rpx;
		width: 100%;
		height: 70rpx;
		line-height: 70rpx;
	}
	.front{
		display: flex;
		width: 150rpx;
		border-radius: 25rpx;
		border: 1px solid #ccc;
		padding: 0 10rpx;
	}
	.front span{
      padding: 0rpx 13rpx;
	}
	.front .yangshi
	{
	    color: white;
	}
	.front .iconfont{
		color: white;
		font-weight:1000;
	}
</style>